﻿using System;
using ProjScan.RecordManager;
using ProjScan.RecordManager.AssetData;
using ProjScan.ScanRule.Attr;

namespace ProjScan.ScanRule.ProjectAssets.Texture2D
{
	// Token: 0x020001BF RID: 447
	[TextureRuleAttr]
	internal class Texture_Resolution : RecordRuleImp<TextureAssetData, TextureRecordManager>
	{
		// Token: 0x06000E89 RID: 3721 RVA: 0x000421D0 File Offset: 0x000403D0
		protected override bool IsOK(TextureAssetData assetData)
		{
			float thresholds = this.GetThresholds(512f);
			return (float)assetData.width <= thresholds && (float)assetData.height <= thresholds;
		}
	}
}
